package com.genshang.restaurant.controller;


import com.genshang.restaurant.result.ResultBody;
import com.genshang.restaurant.service.IGenshanguserlistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Alex
 * @since 2020-09-26
 */
@RestController
@RequestMapping("/genshanguserlist")
public class GenshanguserlistController {

    @Autowired
    private IGenshanguserlistService genshanguserlistService;

    /**
     * 2.1 登录艮上后台
     *
     * @param nickname
     * @param password
     * @return
     */
    @GetMapping("/login")
    public ResultBody login(String nickname, String password) {
        return genshanguserlistService.login(nickname, password);
    }
}
